package com.cmit.upay.monitor.vo;

import com.cmit.upay.monitor.util.StringUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Map;

/**
 * JolokiaQueueList的属性
 */
@Data
public class QueueListValue {

    @JsonProperty("objectName")
    private String objectname;

    private String destinationName;

    public void setObjectname(String objectname) {
        this.objectname = objectname;
        Map<String, String> map = StringUtils.objectNameToMap(objectname);
        this.destinationName = map.get("destinationName");
    }
}